package engine.newUi
{
	import engine.control.loading.MultLoader;
	import engine.data.ResPath;
	import engine.flag.ResourcesPath;
	import engine.ui.lite.BaseUI;
	
	import flash.display.DisplayObjectContainer;
	import flash.display.Sprite;
	
	import newx.StageInfo;
	import newx.com.ResManager;
	import newx.com.control.NxClip;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.text.NxLabel;
	
	public class WashMarrowUI extends BaseUI
	{
		public var savvyTxT:NxLabel;
		public var actorVisual:NxClip;
		public var actorGroup:NxViewGroup;
		public var remind:NxLabel;
		public var getLink:NxLabel;
		public var nameLab:NxLabel;
		public var bg:Sprite;
		public var pc:Sprite;
		public var pc1:Sprite;
		public var pc2:Sprite;
		public var pc3:Sprite;
		public var pc4:Sprite;
		public var pc5:Sprite;
		public var pc6:Sprite;
		
		public var bg_1:Sprite;
		public var bg_2:Sprite;
		public var lvl1:Sprite;
		public var lvl2:Sprite;
		public var lvl3:Sprite;
		public var lvl4:Sprite;
		public var lvl5:Sprite;
		public var lvl6:Sprite;
		public function WashMarrowUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		
		private var control:WashMarrowLogic=WashMarrowLogic.getInstance();
		override public function Init():void
		{
			getLink.buttonMode=true;
			control.Init();
			
		}
		override protected function BeforeShow():void
		{
			control.BeforeShow()
		}
		override protected function AfterHide():void
		{
			control.AfterHide();
		}
		
		override public function show(space:DisplayObjectContainer=null, onshow:Function=null, ...argc):void
		{
			if(!MultLoader.getInstance().hasSourceByUrl(ResPath.SWF + "xisui.swf")){
				MultLoader.getInstance().load([ResPath.SWF + "xisui.swf"], true, createScene);
			} else {
				createScene();
			}
		}
		
		private function createScene():void
		{
			super.show();
		}
	}
}